
import net.optix.ip.model.ModelLocator;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

import net.optix.ip.vo.CopyrightVO;
private var _copyright:CopyrightVO;

public function set copyright(value:CopyrightVO):void
{
	_copyright	=	value;
	switch(model.role)
	{
		case 1:
			if(model.client.clientID == _copyright.clientID)
			{
				this.label	=	"Assign the copyright to a law firm without requesting a bid";
				this.visible	=	true;
			}
			else
			{
				this.visible	=	false;
			}
			break;
		case 3:
			if(model.firm.firmID == _copyright.firmID && _copyright.bConfirm	== 0)
			{
				this.label	=	"Decline or accept the assignment";
				this.visible	=	true;
			}
			else
			{
				this.visible	=	false;
			}
			break;
		default:
			this.visible	=	false;
			break;
	}
}

public function get copyright():CopyrightVO
{
	return _copyright;
}